# -*- coding: utf-8 -*-
# Copyright 2023 The BladeDISC Authors. All rights reserved.
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
# http://www.apache.org/licenses/LICENSE-2.0
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

# The above BladeDISC header is only for linter.
# This file is generated by running the protocol buffer compiler on MNN_compression.proto
# (i.e. https://github.com/alibaba/MNN/blob/2.5.0/tools/mnncompress/mnncompress/common/MNN_compression.proto).
# You can generate or update it by running the following command:
#   protoc --python_out=. MNN_compression.proto

# Generated by the protocol buffer compiler.  DO NOT EDIT!
# source: MNN_compression.proto

from google.protobuf import descriptor as _descriptor
from google.protobuf import message as _message
from google.protobuf import reflection as _reflection
from google.protobuf import symbol_database as _symbol_database
# @@protoc_insertion_point(imports)

_sym_db = _symbol_database.Default()




DESCRIPTOR = _descriptor.FileDescriptor(
  name='MNN_compression.proto',
  package='MNN.Compression',
  syntax='proto2',
  serialized_options=None,
  serialized_pb=b'\n\x15MNN_compression.proto\x12\x0fMNN.Compression\"\xf1\x01\n\x0eQuantizeParams\x12S\n\nround_mode\x18\x01 \x01(\x0e\x32).MNN.Compression.QuantizeParams.RoundMode:\x14ROUND_AWAY_FROM_ZERO\x12\x33\n\x05layer\x18\x04 \x03(\x0b\x32$.MNN.Compression.LayerQuantizeParams\"U\n\tRoundMode\x12\x16\n\x12ROUND_TOWARDS_ZERO\x10\x00\x12\x18\n\x14ROUND_AWAY_FROM_ZERO\x10\x01\x12\x16\n\x12ROUND_HALF_TO_EVEN\x10\x02\"\xe6\x04\n\x13LayerQuantizeParams\x12\x44\n\x05input\x18\x01 \x03(\x0b\x32\x35.MNN.Compression.LayerQuantizeParams.ActivationParams\x12\x41\n\x06weight\x18\x02 \x03(\x0b\x32\x31.MNN.Compression.LayerQuantizeParams.WeightParams\x12\x45\n\x06output\x18\x03 \x03(\x0b\x32\x35.MNN.Compression.LayerQuantizeParams.ActivationParams\x12\x45\n\x06method\x18\x04 \x01(\x0e\x32\x30.MNN.Compression.LayerQuantizeParams.QuantMethod:\x03QAT\x1a\x89\x01\n\x10\x41\x63tivationParams\x12\x0c\n\x04name\x18\x01 \x02(\t\x12\x0f\n\x04\x62its\x18\x02 \x01(\x05:\x01\x38\x12\x0e\n\x06scales\x18\x03 \x03(\x02\x12\x15\n\nzero_point\x18\x04 \x01(\x05:\x01\x30\x12\x17\n\tclamp_min\x18\x05 \x01(\x05:\x04-128\x12\x16\n\tclamp_max\x18\x06 \x01(\x05:\x03\x31\x32\x37\x1an\n\x0cWeightParams\x12\x0c\n\x04name\x18\x01 \x02(\t\x12\x0f\n\x04\x62its\x18\x02 \x01(\x05:\x01\x38\x12\x0e\n\x06scales\x18\x03 \x03(\x02\x12\x17\n\tclamp_min\x18\x04 \x01(\x05:\x04-128\x12\x16\n\tclamp_max\x18\x05 \x01(\x05:\x03\x31\x32\x37\"<\n\x0bQuantMethod\x12\x07\n\x03QAT\x10\x00\x12\x11\n\rOverflowAware\x10\x01\x12\x11\n\rWinogradAware\x10\x02\"[\n\x11LevelPrunerParams\x12\x1b\n\x13weight_tensor_names\x18\x01 \x03(\t\x12\x14\n\x0cprune_ratios\x18\x02 \x03(\x02\x12\x13\n\x0blayer_names\x18\x03 \x03(\t\"o\n\x12SIMDOCPrunerParams\x12\x1b\n\x13weight_tensor_names\x18\x01 \x03(\t\x12\x14\n\x0cprune_ratios\x18\x02 \x03(\x02\x12\x13\n\x0blayer_names\x18\x03 \x03(\t\x12\x11\n\toc_blocks\x18\x04 \x03(\x05\"\x82\x02\n\x0bPruneParams\x12<\n\x04type\x18\x01 \x01(\x0e\x32&.MNN.Compression.PruneParams.PruneType:\x06RANDOM\x12?\n\x13level_pruner_params\x18\x02 \x01(\x0b\x32\".MNN.Compression.LevelPrunerParams\x12\x42\n\x15simd_oc_pruner_params\x18\x03 \x01(\x0b\x32#.MNN.Compression.SIMDOCPrunerParams\"0\n\tPruneType\x12\n\n\x06RANDOM\x10\x00\x12\x0b\n\x07SIMD_OC\x10\x01\x12\n\n\x06\x46ILTER\x10\x02\"\xf2\x01\n\x0f\x43ompressionAlgo\x12H\n\x04type\x18\x01 \x01(\x0e\x32\x30.MNN.Compression.CompressionAlgo.CompressionType:\x08QUANTIZE\x12\x35\n\x0cquant_params\x18\x02 \x01(\x0b\x32\x1f.MNN.Compression.QuantizeParams\x12\x32\n\x0cprune_params\x18\x03 \x01(\x0b\x32\x1c.MNN.Compression.PruneParams\"*\n\x0f\x43ompressionType\x12\x0c\n\x08QUANTIZE\x10\x00\x12\t\n\x05PRUNE\x10\x01\"d\n\x08Pipeline\x12\x16\n\x07version\x18\x01 \x02(\t:\x05\x30.0.0\x12.\n\x04\x61lgo\x18\x02 \x03(\x0b\x32 .MNN.Compression.CompressionAlgo\x12\x10\n\x08mnn_uuid\x18\x03 \x01(\t'
)



_QUANTIZEPARAMS_ROUNDMODE = _descriptor.EnumDescriptor(
  name='RoundMode',
  full_name='MNN.Compression.QuantizeParams.RoundMode',
  filename=None,
  file=DESCRIPTOR,
  values=[
    _descriptor.EnumValueDescriptor(
      name='ROUND_TOWARDS_ZERO', index=0, number=0,
      serialized_options=None,
      type=None),
    _descriptor.EnumValueDescriptor(
      name='ROUND_AWAY_FROM_ZERO', index=1, number=1,
      serialized_options=None,
      type=None),
    _descriptor.EnumValueDescriptor(
      name='ROUND_HALF_TO_EVEN', index=2, number=2,
      serialized_options=None,
      type=None),
  ],
  containing_type=None,
  serialized_options=None,
  serialized_start=199,
  serialized_end=284,
)
_sym_db.RegisterEnumDescriptor(_QUANTIZEPARAMS_ROUNDMODE)

_LAYERQUANTIZEPARAMS_QUANTMETHOD = _descriptor.EnumDescriptor(
  name='QuantMethod',
  full_name='MNN.Compression.LayerQuantizeParams.QuantMethod',
  filename=None,
  file=DESCRIPTOR,
  values=[
    _descriptor.EnumValueDescriptor(
      name='QAT', index=0, number=0,
      serialized_options=None,
      type=None),
    _descriptor.EnumValueDescriptor(
      name='OverflowAware', index=1, number=1,
      serialized_options=None,
      type=None),
    _descriptor.EnumValueDescriptor(
      name='WinogradAware', index=2, number=2,
      serialized_options=None,
      type=None),
  ],
  containing_type=None,
  serialized_options=None,
  serialized_start=841,
  serialized_end=901,
)
_sym_db.RegisterEnumDescriptor(_LAYERQUANTIZEPARAMS_QUANTMETHOD)

_PRUNEPARAMS_PRUNETYPE = _descriptor.EnumDescriptor(
  name='PruneType',
  full_name='MNN.Compression.PruneParams.PruneType',
  filename=None,
  file=DESCRIPTOR,
  values=[
    _descriptor.EnumValueDescriptor(
      name='RANDOM', index=0, number=0,
      serialized_options=None,
      type=None),
    _descriptor.EnumValueDescriptor(
      name='SIMD_OC', index=1, number=1,
      serialized_options=None,
      type=None),
    _descriptor.EnumValueDescriptor(
      name='FILTER', index=2, number=2,
      serialized_options=None,
      type=None),
  ],
  containing_type=None,
  serialized_options=None,
  serialized_start=1320,
  serialized_end=1368,
)
_sym_db.RegisterEnumDescriptor(_PRUNEPARAMS_PRUNETYPE)

_COMPRESSIONALGO_COMPRESSIONTYPE = _descriptor.EnumDescriptor(
  name='CompressionType',
  full_name='MNN.Compression.CompressionAlgo.CompressionType',
  filename=None,
  file=DESCRIPTOR,
  values=[
    _descriptor.EnumValueDescriptor(
      name='QUANTIZE', index=0, number=0,
      serialized_options=None,
      type=None),
    _descriptor.EnumValueDescriptor(
      name='PRUNE', index=1, number=1,
      serialized_options=None,
      type=None),
  ],
  containing_type=None,
  serialized_options=None,
  serialized_start=1571,
  serialized_end=1613,
)
_sym_db.RegisterEnumDescriptor(_COMPRESSIONALGO_COMPRESSIONTYPE)


_QUANTIZEPARAMS = _descriptor.Descriptor(
  name='QuantizeParams',
  full_name='MNN.Compression.QuantizeParams',
  filename=None,
  file=DESCRIPTOR,
  containing_type=None,
  fields=[
    _descriptor.FieldDescriptor(
      name='round_mode', full_name='MNN.Compression.QuantizeParams.round_mode', index=0,
      number=1, type=14, cpp_type=8, label=1,
      has_default_value=True, default_value=1,
      message_type=None, enum_type=None, containing_type=None,
      is_extension=False, extension_scope=None,
      serialized_options=None, file=DESCRIPTOR),
    _descriptor.FieldDescriptor(
      name='layer', full_name='MNN.Compression.QuantizeParams.layer', index=1,
      number=4, type=11, cpp_type=10, label=3,
      has_default_value=False, default_value=[],
      message_type=None, enum_type=None, containing_type=None,
      is_extension=False, extension_scope=None,
      serialized_options=None, file=DESCRIPTOR),
  ],
  extensions=[
  ],
  nested_types=[],
  enum_types=[
    _QUANTIZEPARAMS_ROUNDMODE,
  ],
  serialized_options=None,
  is_extendable=False,
  syntax='proto2',
  extension_ranges=[],
  oneofs=[
  ],
  serialized_start=43,
  serialized_end=284,
)


_LAYERQUANTIZEPARAMS_ACTIVATIONPARAMS = _descriptor.Descriptor(
  name='ActivationParams',
  full_name='MNN.Compression.LayerQuantizeParams.ActivationParams',
  filename=None,
  file=DESCRIPTOR,
  containing_type=None,
  fields=[
    _descriptor.FieldDescriptor(
      name='name', full_name='MNN.Compression.LayerQuantizeParams.ActivationParams.name', index=0,
      number=1, type=9, cpp_type=9, label=2,
      has_default_value=False, default_value=b"".decode('utf-8'),
      message_type=None, enum_type=None, containing_type=None,
      is_extension=False, extension_scope=None,
      serialized_options=None, file=DESCRIPTOR),
    _descriptor.FieldDescriptor(
      name='bits', full_name='MNN.Compression.LayerQuantizeParams.ActivationParams.bits', index=1,
      number=2, type=5, cpp_type=1, label=1,
      has_default_value=True, default_value=8,
      message_type=None, enum_type=None, containing_type=None,
      is_extension=False, extension_scope=None,
      serialized_options=None, file=DESCRIPTOR),
    _descriptor.FieldDescriptor(
      name='scales', full_name='MNN.Compression.LayerQuantizeParams.ActivationParams.scales', index=2,
      number=3, type=2, cpp_type=6, label=3,
      has_default_value=False, default_value=[],
      message_type=None, enum_type=None, containing_type=None,
      is_extension=False, extension_scope=None,
      serialized_options=None, file=DESCRIPTOR),
    _descriptor.FieldDescriptor(
      name='zero_point', full_name='MNN.Compression.LayerQuantizeParams.ActivationParams.zero_point', index=3,
      number=4, type=5, cpp_type=1, label=1,
      has_default_value=True, default_value=0,
      message_type=None, enum_type=None, containing_type=None,
      is_extension=False, extension_scope=None,
      serialized_options=None, file=DESCRIPTOR),
    _descriptor.FieldDescriptor(
      name='clamp_min', full_name='MNN.Compression.LayerQuantizeParams.ActivationParams.clamp_min', index=4,
      number=5, type=5, cpp_type=1, label=1,
      has_default_value=True, default_value=-128,
      message_type=None, enum_type=None, containing_type=None,
      is_extension=False, extension_scope=None,
      serialized_options=None, file=DESCRIPTOR),
    _descriptor.FieldDescriptor(
      name='clamp_max', full_name='MNN.Compression.LayerQuantizeParams.ActivationParams.clamp_max', index=5,
      number=6, type=5, cpp_type=1, label=1,
      has_default_value=True, default_value=127,
      message_type=None, enum_type=None, containing_type=None,
      is_extension=False, extension_scope=None,
      serialized_options=None, file=DESCRIPTOR),
  ],
  extensions=[
  ],
  nested_types=[],
  enum_types=[
  ],
  serialized_options=None,
  is_extendable=False,
  syntax='proto2',
  extension_ranges=[],
  oneofs=[
  ],
  serialized_start=590,
  serialized_end=727,
)

_LAYERQUANTIZEPARAMS_WEIGHTPARAMS = _descriptor.Descriptor(
  name='WeightParams',
  full_name='MNN.Compression.LayerQuantizeParams.WeightParams',
  filename=None,
  file=DESCRIPTOR,
  containing_type=None,
  fields=[
    _descriptor.FieldDescriptor(
      name='name', full_name='MNN.Compression.LayerQuantizeParams.WeightParams.name', index=0,
      number=1, type=9, cpp_type=9, label=2,
      has_default_value=False, default_value=b"".decode('utf-8'),
      message_type=None, enum_type=None, containing_type=None,
      is_extension=False, extension_scope=None,
      serialized_options=None, file=DESCRIPTOR),
    _descriptor.FieldDescriptor(
      name='bits', full_name='MNN.Compression.LayerQuantizeParams.WeightParams.bits', index=1,
      number=2, type=5, cpp_type=1, label=1,
      has_default_value=True, default_value=8,
      message_type=None, enum_type=None, containing_type=None,
      is_extension=False, extension_scope=None,
      serialized_options=None, file=DESCRIPTOR),
    _descriptor.FieldDescriptor(
      name='scales', full_name='MNN.Compression.LayerQuantizeParams.WeightParams.scales', index=2,
      number=3, type=2, cpp_type=6, label=3,
      has_default_value=False, default_value=[],
      message_type=None, enum_type=None, containing_type=None,
      is_extension=False, extension_scope=None,
      serialized_options=None, file=DESCRIPTOR),
    _descriptor.FieldDescriptor(
      name='clamp_min', full_name='MNN.Compression.LayerQuantizeParams.WeightParams.clamp_min', index=3,
      number=4, type=5, cpp_type=1, label=1,
      has_default_value=True, default_value=-128,
      message_type=None, enum_type=None, containing_type=None,
      is_extension=False, extension_scope=None,
      serialized_options=None, file=DESCRIPTOR),
    _descriptor.FieldDescriptor(
      name='clamp_max', full_name='MNN.Compression.LayerQuantizeParams.WeightParams.clamp_max', index=4,
      number=5, type=5, cpp_type=1, label=1,
      has_default_value=True, default_value=127,
      message_type=None, enum_type=None, containing_type=None,
      is_extension=False, extension_scope=None,
      serialized_options=None, file=DESCRIPTOR),
  ],
  extensions=[
  ],
  nested_types=[],
  enum_types=[
  ],
  serialized_options=None,
  is_extendable=False,
  syntax='proto2',
  extension_ranges=[],
  oneofs=[
  ],
  serialized_start=729,
  serialized_end=839,
)

_LAYERQUANTIZEPARAMS = _descriptor.Descriptor(
  name='LayerQuantizeParams',
  full_name='MNN.Compression.LayerQuantizeParams',
  filename=None,
  file=DESCRIPTOR,
  containing_type=None,
  fields=[
    _descriptor.FieldDescriptor(
      name='input', full_name='MNN.Compression.LayerQuantizeParams.input', index=0,
      number=1, type=11, cpp_type=10, label=3,
      has_default_value=False, default_value=[],
      message_type=None, enum_type=None, containing_type=None,
      is_extension=False, extension_scope=None,
      serialized_options=None, file=DESCRIPTOR),
    _descriptor.FieldDescriptor(
      name='weight', full_name='MNN.Compression.LayerQuantizeParams.weight', index=1,
      number=2, type=11, cpp_type=10, label=3,
      has_default_value=False, default_value=[],
      message_type=None, enum_type=None, containing_type=None,
      is_extension=False, extension_scope=None,
      serialized_options=None, file=DESCRIPTOR),
    _descriptor.FieldDescriptor(
      name='output', full_name='MNN.Compression.LayerQuantizeParams.output', index=2,
      number=3, type=11, cpp_type=10, label=3,
      has_default_value=False, default_value=[],
      message_type=None, enum_type=None, containing_type=None,
      is_extension=False, extension_scope=None,
      serialized_options=None, file=DESCRIPTOR),
    _descriptor.FieldDescriptor(
      name='method', full_name='MNN.Compression.LayerQuantizeParams.method', index=3,
      number=4, type=14, cpp_type=8, label=1,
      has_default_value=True, default_value=0,
      message_type=None, enum_type=None, containing_type=None,
      is_extension=False, extension_scope=None,
      serialized_options=None, file=DESCRIPTOR),
  ],
  extensions=[
  ],
  nested_types=[_LAYERQUANTIZEPARAMS_ACTIVATIONPARAMS, _LAYERQUANTIZEPARAMS_WEIGHTPARAMS, ],
  enum_types=[
    _LAYERQUANTIZEPARAMS_QUANTMETHOD,
  ],
  serialized_options=None,
  is_extendable=False,
  syntax='proto2',
  extension_ranges=[],
  oneofs=[
  ],
  serialized_start=287,
  serialized_end=901,
)


_LEVELPRUNERPARAMS = _descriptor.Descriptor(
  name='LevelPrunerParams',
  full_name='MNN.Compression.LevelPrunerParams',
  filename=None,
  file=DESCRIPTOR,
  containing_type=None,
  fields=[
    _descriptor.FieldDescriptor(
      name='weight_tensor_names', full_name='MNN.Compression.LevelPrunerParams.weight_tensor_names', index=0,
      number=1, type=9, cpp_type=9, label=3,
      has_default_value=False, default_value=[],
      message_type=None, enum_type=None, containing_type=None,
      is_extension=False, extension_scope=None,
      serialized_options=None, file=DESCRIPTOR),
    _descriptor.FieldDescriptor(
      name='prune_ratios', full_name='MNN.Compression.LevelPrunerParams.prune_ratios', index=1,
      number=2, type=2, cpp_type=6, label=3,
      has_default_value=False, default_value=[],
      message_type=None, enum_type=None, containing_type=None,
      is_extension=False, extension_scope=None,
      serialized_options=None, file=DESCRIPTOR),
    _descriptor.FieldDescriptor(
      name='layer_names', full_name='MNN.Compression.LevelPrunerParams.layer_names', index=2,
      number=3, type=9, cpp_type=9, label=3,
      has_default_value=False, default_value=[],
      message_type=None, enum_type=None, containing_type=None,
      is_extension=False, extension_scope=None,
      serialized_options=None, file=DESCRIPTOR),
  ],
  extensions=[
  ],
  nested_types=[],
  enum_types=[
  ],
  serialized_options=None,
  is_extendable=False,
  syntax='proto2',
  extension_ranges=[],
  oneofs=[
  ],
  serialized_start=903,
  serialized_end=994,
)


_SIMDOCPRUNERPARAMS = _descriptor.Descriptor(
  name='SIMDOCPrunerParams',
  full_name='MNN.Compression.SIMDOCPrunerParams',
  filename=None,
  file=DESCRIPTOR,
  containing_type=None,
  fields=[
    _descriptor.FieldDescriptor(
      name='weight_tensor_names', full_name='MNN.Compression.SIMDOCPrunerParams.weight_tensor_names', index=0,
      number=1, type=9, cpp_type=9, label=3,
      has_default_value=False, default_value=[],
      message_type=None, enum_type=None, containing_type=None,
      is_extension=False, extension_scope=None,
      serialized_options=None, file=DESCRIPTOR),
    _descriptor.FieldDescriptor(
      name='prune_ratios', full_name='MNN.Compression.SIMDOCPrunerParams.prune_ratios', index=1,
      number=2, type=2, cpp_type=6, label=3,
      has_default_value=False, default_value=[],
      message_type=None, enum_type=None, containing_type=None,
      is_extension=False, extension_scope=None,
      serialized_options=None, file=DESCRIPTOR),
    _descriptor.FieldDescriptor(
      name='layer_names', full_name='MNN.Compression.SIMDOCPrunerParams.layer_names', index=2,
      number=3, type=9, cpp_type=9, label=3,
      has_default_value=False, default_value=[],
      message_type=None, enum_type=None, containing_type=None,
      is_extension=False, extension_scope=None,
      serialized_options=None, file=DESCRIPTOR),
    _descriptor.FieldDescriptor(
      name='oc_blocks', full_name='MNN.Compression.SIMDOCPrunerParams.oc_blocks', index=3,
      number=4, type=5, cpp_type=1, label=3,
      has_default_value=False, default_value=[],
      message_type=None, enum_type=None, containing_type=None,
      is_extension=False, extension_scope=None,
      serialized_options=None, file=DESCRIPTOR),
  ],
  extensions=[
  ],
  nested_types=[],
  enum_types=[
  ],
  serialized_options=None,
  is_extendable=False,
  syntax='proto2',
  extension_ranges=[],
  oneofs=[
  ],
  serialized_start=996,
  serialized_end=1107,
)


_PRUNEPARAMS = _descriptor.Descriptor(
  name='PruneParams',
  full_name='MNN.Compression.PruneParams',
  filename=None,
  file=DESCRIPTOR,
  containing_type=None,
  fields=[
    _descriptor.FieldDescriptor(
      name='type', full_name='MNN.Compression.PruneParams.type', index=0,
      number=1, type=14, cpp_type=8, label=1,
      has_default_value=True, default_value=0,
      message_type=None, enum_type=None, containing_type=None,
      is_extension=False, extension_scope=None,
      serialized_options=None, file=DESCRIPTOR),
    _descriptor.FieldDescriptor(
      name='level_pruner_params', full_name='MNN.Compression.PruneParams.level_pruner_params', index=1,
      number=2, type=11, cpp_type=10, label=1,
      has_default_value=False, default_value=None,
      message_type=None, enum_type=None, containing_type=None,
      is_extension=False, extension_scope=None,
      serialized_options=None, file=DESCRIPTOR),
    _descriptor.FieldDescriptor(
      name='simd_oc_pruner_params', full_name='MNN.Compression.PruneParams.simd_oc_pruner_params', index=2,
      number=3, type=11, cpp_type=10, label=1,
      has_default_value=False, default_value=None,
      message_type=None, enum_type=None, containing_type=None,
      is_extension=False, extension_scope=None,
      serialized_options=None, file=DESCRIPTOR),
  ],
  extensions=[
  ],
  nested_types=[],
  enum_types=[
    _PRUNEPARAMS_PRUNETYPE,
  ],
  serialized_options=None,
  is_extendable=False,
  syntax='proto2',
  extension_ranges=[],
  oneofs=[
  ],
  serialized_start=1110,
  serialized_end=1368,
)


_COMPRESSIONALGO = _descriptor.Descriptor(
  name='CompressionAlgo',
  full_name='MNN.Compression.CompressionAlgo',
  filename=None,
  file=DESCRIPTOR,
  containing_type=None,
  fields=[
    _descriptor.FieldDescriptor(
      name='type', full_name='MNN.Compression.CompressionAlgo.type', index=0,
      number=1, type=14, cpp_type=8, label=1,
      has_default_value=True, default_value=0,
      message_type=None, enum_type=None, containing_type=None,
      is_extension=False, extension_scope=None,
      serialized_options=None, file=DESCRIPTOR),
    _descriptor.FieldDescriptor(
      name='quant_params', full_name='MNN.Compression.CompressionAlgo.quant_params', index=1,
      number=2, type=11, cpp_type=10, label=1,
      has_default_value=False, default_value=None,
      message_type=None, enum_type=None, containing_type=None,
      is_extension=False, extension_scope=None,
      serialized_options=None, file=DESCRIPTOR),
    _descriptor.FieldDescriptor(
      name='prune_params', full_name='MNN.Compression.CompressionAlgo.prune_params', index=2,
      number=3, type=11, cpp_type=10, label=1,
      has_default_value=False, default_value=None,
      message_type=None, enum_type=None, containing_type=None,
      is_extension=False, extension_scope=None,
      serialized_options=None, file=DESCRIPTOR),
  ],
  extensions=[
  ],
  nested_types=[],
  enum_types=[
    _COMPRESSIONALGO_COMPRESSIONTYPE,
  ],
  serialized_options=None,
  is_extendable=False,
  syntax='proto2',
  extension_ranges=[],
  oneofs=[
  ],
  serialized_start=1371,
  serialized_end=1613,
)


_PIPELINE = _descriptor.Descriptor(
  name='Pipeline',
  full_name='MNN.Compression.Pipeline',
  filename=None,
  file=DESCRIPTOR,
  containing_type=None,
  fields=[
    _descriptor.FieldDescriptor(
      name='version', full_name='MNN.Compression.Pipeline.version', index=0,
      number=1, type=9, cpp_type=9, label=2,
      has_default_value=True, default_value=b"0.0.0".decode('utf-8'),
      message_type=None, enum_type=None, containing_type=None,
      is_extension=False, extension_scope=None,
      serialized_options=None, file=DESCRIPTOR),
    _descriptor.FieldDescriptor(
      name='algo', full_name='MNN.Compression.Pipeline.algo', index=1,
      number=2, type=11, cpp_type=10, label=3,
      has_default_value=False, default_value=[],
      message_type=None, enum_type=None, containing_type=None,
      is_extension=False, extension_scope=None,
      serialized_options=None, file=DESCRIPTOR),
    _descriptor.FieldDescriptor(
      name='mnn_uuid', full_name='MNN.Compression.Pipeline.mnn_uuid', index=2,
      number=3, type=9, cpp_type=9, label=1,
      has_default_value=False, default_value=b"".decode('utf-8'),
      message_type=None, enum_type=None, containing_type=None,
      is_extension=False, extension_scope=None,
      serialized_options=None, file=DESCRIPTOR),
  ],
  extensions=[
  ],
  nested_types=[],
  enum_types=[
  ],
  serialized_options=None,
  is_extendable=False,
  syntax='proto2',
  extension_ranges=[],
  oneofs=[
  ],
  serialized_start=1615,
  serialized_end=1715,
)

_QUANTIZEPARAMS.fields_by_name['round_mode'].enum_type = _QUANTIZEPARAMS_ROUNDMODE
_QUANTIZEPARAMS.fields_by_name['layer'].message_type = _LAYERQUANTIZEPARAMS
_QUANTIZEPARAMS_ROUNDMODE.containing_type = _QUANTIZEPARAMS
_LAYERQUANTIZEPARAMS_ACTIVATIONPARAMS.containing_type = _LAYERQUANTIZEPARAMS
_LAYERQUANTIZEPARAMS_WEIGHTPARAMS.containing_type = _LAYERQUANTIZEPARAMS
_LAYERQUANTIZEPARAMS.fields_by_name['input'].message_type = _LAYERQUANTIZEPARAMS_ACTIVATIONPARAMS
_LAYERQUANTIZEPARAMS.fields_by_name['weight'].message_type = _LAYERQUANTIZEPARAMS_WEIGHTPARAMS
_LAYERQUANTIZEPARAMS.fields_by_name['output'].message_type = _LAYERQUANTIZEPARAMS_ACTIVATIONPARAMS
_LAYERQUANTIZEPARAMS.fields_by_name['method'].enum_type = _LAYERQUANTIZEPARAMS_QUANTMETHOD
_LAYERQUANTIZEPARAMS_QUANTMETHOD.containing_type = _LAYERQUANTIZEPARAMS
_PRUNEPARAMS.fields_by_name['type'].enum_type = _PRUNEPARAMS_PRUNETYPE
_PRUNEPARAMS.fields_by_name['level_pruner_params'].message_type = _LEVELPRUNERPARAMS
_PRUNEPARAMS.fields_by_name['simd_oc_pruner_params'].message_type = _SIMDOCPRUNERPARAMS
_PRUNEPARAMS_PRUNETYPE.containing_type = _PRUNEPARAMS
_COMPRESSIONALGO.fields_by_name['type'].enum_type = _COMPRESSIONALGO_COMPRESSIONTYPE
_COMPRESSIONALGO.fields_by_name['quant_params'].message_type = _QUANTIZEPARAMS
_COMPRESSIONALGO.fields_by_name['prune_params'].message_type = _PRUNEPARAMS
_COMPRESSIONALGO_COMPRESSIONTYPE.containing_type = _COMPRESSIONALGO
_PIPELINE.fields_by_name['algo'].message_type = _COMPRESSIONALGO
DESCRIPTOR.message_types_by_name['QuantizeParams'] = _QUANTIZEPARAMS
DESCRIPTOR.message_types_by_name['LayerQuantizeParams'] = _LAYERQUANTIZEPARAMS
DESCRIPTOR.message_types_by_name['LevelPrunerParams'] = _LEVELPRUNERPARAMS
DESCRIPTOR.message_types_by_name['SIMDOCPrunerParams'] = _SIMDOCPRUNERPARAMS
DESCRIPTOR.message_types_by_name['PruneParams'] = _PRUNEPARAMS
DESCRIPTOR.message_types_by_name['CompressionAlgo'] = _COMPRESSIONALGO
DESCRIPTOR.message_types_by_name['Pipeline'] = _PIPELINE
_sym_db.RegisterFileDescriptor(DESCRIPTOR)

QuantizeParams = _reflection.GeneratedProtocolMessageType('QuantizeParams', (_message.Message,), {
  'DESCRIPTOR' : _QUANTIZEPARAMS,
  '__module__' : 'MNN_compression_pb2'
  # @@protoc_insertion_point(class_scope:MNN.Compression.QuantizeParams)
  })
_sym_db.RegisterMessage(QuantizeParams)

LayerQuantizeParams = _reflection.GeneratedProtocolMessageType('LayerQuantizeParams', (_message.Message,), {

  'ActivationParams' : _reflection.GeneratedProtocolMessageType('ActivationParams', (_message.Message,), {
    'DESCRIPTOR' : _LAYERQUANTIZEPARAMS_ACTIVATIONPARAMS,
    '__module__' : 'MNN_compression_pb2'
    # @@protoc_insertion_point(class_scope:MNN.Compression.LayerQuantizeParams.ActivationParams)
    })
  ,

  'WeightParams' : _reflection.GeneratedProtocolMessageType('WeightParams', (_message.Message,), {
    'DESCRIPTOR' : _LAYERQUANTIZEPARAMS_WEIGHTPARAMS,
    '__module__' : 'MNN_compression_pb2'
    # @@protoc_insertion_point(class_scope:MNN.Compression.LayerQuantizeParams.WeightParams)
    })
  ,
  'DESCRIPTOR' : _LAYERQUANTIZEPARAMS,
  '__module__' : 'MNN_compression_pb2'
  # @@protoc_insertion_point(class_scope:MNN.Compression.LayerQuantizeParams)
  })
_sym_db.RegisterMessage(LayerQuantizeParams)
_sym_db.RegisterMessage(LayerQuantizeParams.ActivationParams)
_sym_db.RegisterMessage(LayerQuantizeParams.WeightParams)

LevelPrunerParams = _reflection.GeneratedProtocolMessageType('LevelPrunerParams', (_message.Message,), {
  'DESCRIPTOR' : _LEVELPRUNERPARAMS,
  '__module__' : 'MNN_compression_pb2'
  # @@protoc_insertion_point(class_scope:MNN.Compression.LevelPrunerParams)
  })
_sym_db.RegisterMessage(LevelPrunerParams)

SIMDOCPrunerParams = _reflection.GeneratedProtocolMessageType('SIMDOCPrunerParams', (_message.Message,), {
  'DESCRIPTOR' : _SIMDOCPRUNERPARAMS,
  '__module__' : 'MNN_compression_pb2'
  # @@protoc_insertion_point(class_scope:MNN.Compression.SIMDOCPrunerParams)
  })
_sym_db.RegisterMessage(SIMDOCPrunerParams)

PruneParams = _reflection.GeneratedProtocolMessageType('PruneParams', (_message.Message,), {
  'DESCRIPTOR' : _PRUNEPARAMS,
  '__module__' : 'MNN_compression_pb2'
  # @@protoc_insertion_point(class_scope:MNN.Compression.PruneParams)
  })
_sym_db.RegisterMessage(PruneParams)

CompressionAlgo = _reflection.GeneratedProtocolMessageType('CompressionAlgo', (_message.Message,), {
  'DESCRIPTOR' : _COMPRESSIONALGO,
  '__module__' : 'MNN_compression_pb2'
  # @@protoc_insertion_point(class_scope:MNN.Compression.CompressionAlgo)
  })
_sym_db.RegisterMessage(CompressionAlgo)

Pipeline = _reflection.GeneratedProtocolMessageType('Pipeline', (_message.Message,), {
  'DESCRIPTOR' : _PIPELINE,
  '__module__' : 'MNN_compression_pb2'
  # @@protoc_insertion_point(class_scope:MNN.Compression.Pipeline)
  })
_sym_db.RegisterMessage(Pipeline)


# @@protoc_insertion_point(module_scope)
